<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <title>锦觅图书馆管理系统</title>
    <script src="http://cdn.staticfile.org/jquery/3.6.0/jquery.js"></script>
    <link rel="stylesheet" type="text/css" href="css/index.css" th:href="@{/css/index.css}">
    <script>
        $(function(){
            $("#div1").on("click",".father",function () {
                var flag = $(this).nextUntil(".father").is(":hidden");
                if (flag) {
                    $(this).nextUntil(".father").toggle();
                } else {
                    $(this).nextUntil(".father").hide();
                }
            });
        })
    </script>
</head>
<body>
<div class="wrapper">
    <div class="header">
        <div class="title">
            <a id="titlename" ><p class="lib" >锦觅图书馆管理系统</p></a>
        </div>
        <div class="user">
            <img src="/img/curuser.jpg" style="width: 60px;height: 60px">
            <p style="float: right">当前用户：
                <a id="cur_user" th:text="${session.userName}"></a>
                <a href="/logout" id="exit" th:text="退出" style="text-decoration:none;"></a>
            </p>
        </div>
    </div>
    <div class="main">
        <div id="div1" style="background-color: #ea9152;height: 100%;">
            <ul class="first">
                <li th:each="tree,treeStat: ${trees}" th:class="${tree.menulevel=='1'?'father':'son'}" >
                    <img th:src="${tree.pic}" style="margin-left: 8px;width: 18px;height: 18px">
                    <a target="right" th:href="${tree.url}" th:text="${tree.menuname}"></a>
                </li>
            </ul>
        </div>
        <div class="content">
            <iframe src="/indexPage" width="100%" height="100%" name="right" frameborder="0"></iframe>
        </div>
    </div>
    <div class="footer" style="text-align: center;">
        版权声明：蓝桥13班第14组
        <div style="text-align: center;">
            <img src="/img/页脚图片.jpg" height="50" width="80"/>
        </div>
    </div>
</div>
</body>
</html>